package cn.yunhe.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Member implements Serializable {
    private int mid;
    private String maccount;
    private String mpwd;
    private int mflag;

    private Set<Role>roleSet=new HashSet<>();

    public Member() {
    }

    public Member(int mid, String maccount, String mpwd, int mflag, Set<Role> roleSet) {
        this.mid = mid;
        this.maccount = maccount;
        this.mpwd = mpwd;
        this.mflag = mflag;
        this.roleSet = roleSet;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getMaccount() {
        return maccount;
    }

    public void setMaccount(String maccount) {
        this.maccount = maccount;
    }

    public String getMpwd() {
        return mpwd;
    }

    public void setMpwd(String mpwd) {
        this.mpwd = mpwd;
    }

    public int getMflag() {
        return mflag;
    }

    public void setMflag(int mflag) {
        this.mflag = mflag;
    }

    public Set<Role> getRoleSet() {
        return roleSet;
    }

    public void setRoleSet(Set<Role> roleSet) {
        this.roleSet = roleSet;
    }
}
